function main() {
    debugger
    var self = this; // 作用域
    var tableComp = self.$$element("table_8roigi"); // 获取表格元素

    let groupId = self.$$roots()[0].state.extraParams.groupId;

    // 获取当前表格选中的行
    var { selectedRows } = tableComp.$$getSelection();

    console.log(selectedRows);

    var litigants = selectedRows.map(item => {
        var selector = "tr[data-row-key='" + item.matter_id.value + "']";
        var rowElements = tableComp.$el.querySelectorAll(selector);

        // rowElements[1].querySelector("button").disabled
        var btnElement = rowElements.length > 0 ? rowElements[0].querySelector("button") : null;

        btnElement.disabled = true;

        return {
            groupId: groupId,
            matter_id: item.matter_id.value,
            matter_name: item.matter_name.value,
            btnElement: btnElement
        };
    });

    var newLitigants = litigants.filter(litigant => {
        return !window.unitLitigant.some(existingLitigant => existingLitigant.matter_id === litigant.matter_id);
    });

    window.unitLitigant.push(...newLitigants);

    let tableListEle = self.$$("table_8yjmxi");

    tableComp.$$refreshData();

    tableListEle.$$refreshData();

}
